package com.ejiaoyi.api.dto.v1;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * getUserInfoByLoginName 方法 DTO
 *
 * @author unknownChivalrous
 * @since 2020-4-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "getUserInfoByLoginName", description = "getUserInfoByLoginName")
public class GetUserInfoByLoginName extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonProperty("login_name")
    @JSONField(name = "login_name")
    @ApiModelProperty(value = "用户名", required = true, example = "admin")
    private String loginName;

    @JsonProperty("password")
    @JSONField(name = "password")
    @ApiModelProperty(value = "密码", required = true, example = "111111")
    private String password;
}
